<?php
namespace app\admin\controller;

use app\common\model\LuntanVote       as LuntanVoteModel;
use app\common\model\LuntanVoteselect as LuntanVoteselectModel;
use app\common\model\LuntanVotecount  as LuntanVotecountModel;
use app\common\controller\AdminBase;

/**
 * 投票统计页面
 */
class LuntanVotecount extends AdminBase
{
	protected $vote_model;
	protected $voteselect_model;

	protected function _initialize()
	{
		parent::_initialize();
		$this->votecount_model = new LuntanVotecountModel;
	}  
	public function index($start_time = '',$end_time = '',$page = 1,$votename = '')
	{
		$list = $this->votecount_model->getVotecountList($start_time,$end_time,$page,$votename);
		return $this->fetch('index', ['start_time'=>$start_time,'end_time'=>$end_time,'list'=>$list,'votename'=>$votename]);
	}

}